<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加新的用户</title>
<link href="html/css/css.css" rel="stylesheet" type="text/css" />
<script Language="JavaScript" src="html/js/functions.js"></script>
<script Language="JavaScript" src="html/js/ajax.js"></script>
<script language="javascript">
//提交验证
function check_user_submit()
{


		if($('UserName').value =='')
		{
			msg_box('您还没有填写用户名称!');
			$('showDate').focus();
			return false;
		}
		
		if($('PassWord').value =='')
		{
			msg_box('您还没有填写用户密码!');
			$('PassWord').focus();
			return false;
		}
		

		$('submit').disabled = true;
		$('submit').src = 'html/images/ajax.gif';
		return true;
}
</script>
</head>

<body>
<if $Msg>
<div id="msg"><img src="html/images/information.gif" width="16" height="16" align="absmiddle" /> [$Msg]</div>
</if>
<form action="" method="post" enctype="multipart/form-data" name="form" id="form" style="margin:0px" onsubmit="return check_user_submit();">
<div class="form_box">
	<div class="header">
    <img src="html/images/user.gif" width="16" height="16" align="absmiddle" />&nbsp;添加新的用户</div>
  <div class="box">
    	<div class="text">
    	用户名:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="UserName" type="text" id="UserName" />
       	</div>
        <div style="clear:both"></div>
    </div>
      <div class="box">
    	<div class="text">
    	密码:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="PassWord" type="text" id="PassWord" />
       </div>
        <div style="clear:both"></div>
    </div>
    
    <div class="box">
    	<div class="text">
    头像:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Photo" type="file" id="Photo" />
       </div>
        <div style="clear:both"></div>
    </div>
    
   <div class="box">
    	<div class="text">
    	状态:
    	</div>
        <div class="input" style="padding-left:10px;">
            <select name="State">
 			<option value="1">正常</option>
            <option value="-1">禁用</option>
            </select>
       	</div>
        <div style="clear:both"></div>
    </div>
    
          <div class="box">
    	<div class="text">
    	积分:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Integral" type="text" id="Integral" />
       </div>
        <div style="clear:both"></div>
    </div>
          <div class="box">
    	<div class="text">
    	Email:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="Email" type="text" id="Email" />
       </div>
        <div style="clear:both"></div>
    </div>

    <div class="box">
    	<div class="text">
    	QQ:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<input name="QQ" type="text" id="QQ" />
       </div>
        <div style="clear:both"></div>
    </div>

      <div class="box">
    	<div class="text">
    	备注:
    	</div>
        <div class="input" style="padding-left:10px;">
    		<textarea name="Intro" style="height:100px;"></textarea>
       	</div>
        <div style="clear:both"></div>
    </div>
    
    </div>
</div>
<div class="form_box_bottom">
<input type="image" src="html/images/submit.gif" id="submit" align="absmiddle" border="0" title="保存" /></a>
<a href="javascript:history.go(-1);"><img src="html/images/msg_cancel.gif" align="absmiddle" border="0" title="返回" /></a>
</div>
</form>
</body>
</html>
